﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using OxyPlot;

namespace vJine.Lua.GUI {
    /// <summary>
    /// WinPlot.xaml 的交互逻辑
    /// </summary>
    public partial class WinPlot : Window {
        public WinPlot() {
            InitializeComponent();
        }

        public PlotModel pmOxy {
            set {
                this.plotter.Model = value;
                this.Title = this.Title + "-(" + value.Title + ")";
            }
        }

        public void save_pic(string file_name) {
            this.plotter.SaveBitmap(file_name);
        }
    }
}
